package net.huashitong.ssydt.provider.common.service;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.common.entity.SsCommonYearScore;
import net.huashitong.ssydt.provider.common.mapper.SsCommonYearScoreMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.02.05
 */
@Service
@Transactional
public class SsCommonYearScoreServiceImpl extends AbstractLongService<SsCommonYearScore> implements SsCommonYearScoreService {

    private SsCommonYearScoreMapper mapper;

    @Autowired
    public SsCommonYearScoreServiceImpl(SsCommonYearScoreMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsCommonYearScore> getLongMapper() {
        return this.mapper;
    }

    @Override
    public SsCommonYearScore getByUserId(String userId) {
        return this.mapper.getByUserId(userId);
    }
}
